package com.bosssoft.service;

import java.util.List;

import com.bosssoft.entity.dto.FibRoleDTO;
import com.bosssoft.entity.po.FibRolePO;
import com.baomidou.mybatisplus.extension.service.IService;
    /**
 * @author Li kexi
 * Created on 2021/8/16.14:32
 */
public interface FibRoleService extends IService<FibRolePO>{

    boolean addRole(FibRoleDTO roleDTO);

    boolean modifyRole(FibRoleDTO roleDTO);

    boolean banRoleById(Long id, Integer status);

    boolean deleteRoleById(Long id);

    String getRoleNameById(Long id);

    int updateBatch(List<FibRolePO> list);

    int updateBatchSelective(List<FibRolePO> list);

    int batchInsert(List<FibRolePO> list);

    int insertOrUpdate(FibRolePO record);

    int insertOrUpdateSelective(FibRolePO record);

    List<FibRoleDTO> getAllRoles();

}
